package com.baosight.risk.service.riaa.entity;

import com.baosight.risk.base.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * Table: T_RIQU_INQUIRY_DETAIL
 */
@Data
@Table(name = "T_RIQU_INQUIRY_DETAIL")
public class RiquInquiryDetail extends BaseEntity {

    /**
     * 问卷提交单位ID
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    QU_RESULT_ID
     * Nullable:  true
     */
    @Column(name = "QU_RESULT_ID")
    private String quResultId;

    /**
     * 答案类型（select单选，multiSelect多选，text文本，risk选择）
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    ANSWER_TYPE_CODE
     * Nullable:  true
     */
    @Column(name = "ANSWER_TYPE_CODE")
    private String answerTypeCode;

    /**
     * 答案类型说明
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    ANSWER_TYPE_NAME
     * Nullable:  true
     */
    @Column(name = "ANSWER_TYPE_NAME")
    private String answerTypeName;

    /**
     * 责任单位
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    DUTY_COMP_CODE
     * Nullable:  true
     */
    @Column(name = "DUTY_COMP_CODE")
    private String dutyCompCode;

    /**
     * 责任单位说明
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    DUTY_COMP_NAME
     * Nullable:  true
     */
    @Column(name = "DUTY_COMP_NAME")
    private String dutyCompName;

    /**
     * 领域
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    FIELD_CODE
     * Nullable:  true
     */
    @Column(name = "FIELD_CODE")
    private String fieldCode;

    /**
     * 领域说明
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    FIELD_NAME
     * Nullable:  true
     */
    @Column(name = "FIELD_NAME")
    private String fieldName;

    /**
     * 主要关注事项编码（可为空）
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    QUES_NO
     * Nullable:  true
     */
    @Column(name = "QUES_NO")
    private String quesNo;

    /**
     * 主要关注事项
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    QUES_NAME
     * Nullable:  true
     */
    @Column(name = "QUES_NAME")
    private String quesName;

    /**
     * 答案
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    ANSWER_DESC
     * Nullable:  true
     */
    @Column(name = "ANSWER_DESC")
    private String answerDesc;

    /**
     * 备注
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    REMARK
     * Nullable:  true
     */
    @Column(name = "REMARK")
    private String remark;

    /**
     * 排序
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @Column(name = "ROW_ORDER")
//    private String rowOrder;

    private  Integer rowOrder;
    /**
     * 新建标识
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    CREATE_FLAG
     * Nullable:  true
     */
    @Column(name = "CREATE_FLAG")
    private String createFlag;

    /**
     * 问卷填报单位
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    SUBMIT_COMP_CODE
     * Nullable:  true
     */
    @Column(name = "SUBMIT_COMP_CODE")
    private String submitCompCode;

    /**
     * 问卷填报单位名称
     * <p>
     * Table:     T_RIQU_INQUIRY_DETAIL
     * Column:    SUBMIT_COMP_NAME
     * Nullable:  true
     */
    @Column(name = "SUBMIT_COMP_NAME")
    private String submitCompName;

    private static final long serialVersionUID = 1L;
}